
namespace JTZY.Model.Visit.Dto
{
    /// <summary>
    /// 用户访问记录查询对象
    /// </summary>
    public class UservisitQueryDto : PagerInfo 
    {
        public long UserId { get; set; }
        public DateTime? BeginCreateTime { get; set; }
        public DateTime? EndCreateTime { get; set; }
        public DateTime CreateTime { get; set; }

        public int? HasBuy { get; set; }
    }

    /// <summary>
    /// 用户访问记录输入输出对象
    /// </summary>
    public class UservisitDto
    {
        [Required(ErrorMessage = "Id不能为空")]
        public long Id { get; set; }

        [Required(ErrorMessage = "访问用户ID不能为空")]
        public long UserId { get; set; }

        public string UserName { get; set; }


        [Required(ErrorMessage = "访问时间不能为空")]
        public DateTime? CreateTime { get; set; }

        [Required(ErrorMessage = "所属代理不能为空")]
        public long ParentId { get; set; }

        public string Ip { get; set; }
        public int HasBuy { get; set; }
    }
}